package com.cskaoyan.mapper;

import com.cskaoyan.bean.comment.MarketComment;
import com.cskaoyan.bean.comment.MarketCommentExample;

import java.util.Date;
import java.util.List;

import com.cskaoyan.bean.order.wxbean.CommentBO;
import org.apache.ibatis.annotations.Param;

import javax.xml.crypto.Data;

/**
 * @author Hu
 * @create 2021-09-17 16:09
 * @Description
 */
public interface MarketCommentMapper {
    long countByExample(MarketCommentExample example);

    int deleteByExample(MarketCommentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketComment record);

    int insertSelective(MarketComment record);

    List<MarketComment> selectByExample(MarketCommentExample example);

    MarketComment selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketComment record, @Param("example") MarketCommentExample example);

    int updateByExample(@Param("record") MarketComment record, @Param("example") MarketCommentExample example);

    int updateByPrimaryKeySelective(MarketComment record);

    int updateByPrimaryKey(MarketComment record);

    void deleteByIdInLogic(Integer id);

    int reply(@Param("commentId") Integer commentId, @Param("content") String content, @Param("date") Date date);

    void addComment(@Param("content") String content, @Param("hasPicture") Boolean hasPicture, @Param("picUrls") String[] picUrls, @Param("star") Integer star, @Param("goodsId") Integer goodsId, @Param("user") Integer user);
}